<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  	  xmlns:form="http://www.w3.org/2002/xforms"
	  xmlns:ev="http://www.w3.org/2001/xml-events"
	  xmlns:concentre="http://concentre.zensoluciones.com"
	  xmlns:sms="http://www.tm4b.com"
	  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xml:lang="en">
  <head>
    <title>JavaScript XPath Implementation Benchmark</title>
    <script type="text/javascript" src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js"></script>
    <script type="text/javascript" src="src/concentre.js.php"></script>
    <script type="text/javascript">

/*
console= {
	log : function(msg) {
		var elt = document.getElementById('log');
		elt.innerText+=msg+"\n";
	}
};
*/

window.onload = function () {
	Concentre.initialize();   
};



</script>
	<form:model id="model1">
		<form:instance>
			<sms:send>
				<sms:to>0034627665283</sms:to>
				<sms:from>zensol</sms:from>
				<sms:msg>Hola mundo</sms:msg>
				<sms:address>
					<sms:number>4</sms:number>
					<sms:door>3</sms:door>
					<sms:total/>
				</sms:address>
			</sms:send>
		</form:instance>
		<form:bind ref="sms:address/sms:total" calculate="../sms:number + ../sms:door" />
    	<form:submission id="submission1" action="/proxy/sms/send" method="get"  />
    </form:model>
    
  </head>
  <body>
  
  	<form:group>
  		<form:label>Send SMS</form:label>
   		<form:input ref="sms:from">
              <form:label>From:</form:label>
         </form:input>

   		<form:input ref="sms:to">
              <form:label>To:</form:label>
         </form:input>
	</form:group>
	<form:group ref="sms:address">
		<form:label>Address</form:label>
	
   		<form:input ref="sms:number">
              <form:label>Number:</form:label>
         </form:input>

   		<form:input ref="sms:door">
              <form:label>Door:</form:label>
         </form:input>


   		<form:input ref="sms:total">
              <form:label>Total:</form:label>
         </form:input>
	</form:group>
         
   		<form:textarea ref="sms:msg">
              <form:label>Msg:</form:label>
         </form:textarea>


   		<form:submit>
              <form:label>Send</form:label>
         </form:submit>
         
        <pre id="log"></pre> 
  </body>
</html>